// components/test2/test2.js
// 引入创建的behaviors实例
const myBehaviors = require("../../behaviors/my-behaviors")
Component({
  // 注册
  behaviors: [myBehaviors],
  options: {
    multipleSlots: true
  },

  properties: {
    count: Number
  },

  data: {
    num: 9
  },

  methods: {
    addCount() {
      this.triggerEvent('change-count', { newCount: this.properties.count + 1 })
    }
  }
})
